var main = {
    index : function(req,res,next){
        var jadeView = 'index';
        var data = {
            title : 'blog 首页'
        };
        res.render(jadeView,data,function(err,html){
            if(err){
                throw err;
            }else{
                res.send(html);
            }
        });
    },
    about : function(req,res,next){
        var jadeView = 'about';
        var data = {
            title : 'blog 关于'
        };
        res.render(jadeView,data,function(err,html){
            if(err){
                throw err;
            }else{
                res.send(html);
            }
        });
    }
};
module.exports = main;
